<?php
namespace App\Http\Controllers;

use App\Module\MainModule;
use Illuminate\Http\Request;

class MainController extends Controller{

    public function init(Request $request){

        $this->run([MainModule::class,'init'],$request);
        return $this->response();

    }
    public function init1(Request $request){

        $this->run([MainModule::class,'init1'],$request);
        return $this->response();

    }

    public function add(Request $request)
    {
        $this->run([MainModule::class,'add'],$request);
        return $this->response();
    }

    public function edit(Request $request){
        $this->run([MainModule::class,'edit'],$request);
        return $this->response();
    }
    public function isUsed(Request $request){
        $this->run([MainModule::class,'isUsed'],$request);
        return $this->response();
    }
    public function del(Request $request)
    {
        $this->run([MainModule::class,'del'],$request);
        return $this->response();
    }

    public function saveConfig(Request $request)
    {
        $this->run([MainModule::class,'saveConfig'],$request);
        return $this->response();
    }

}
